import 'package:chanllenge/view/exhibition_botton_sheet.dart';
import 'package:chanllenge/view/sliding_cards.dart';
import 'package:chanllenge/view/tabs.dart';
import 'package:flutter/material.dart';

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Stack(
        children: [
          SafeArea(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                SizedBox(height: 8,),
                Header(),
                SizedBox(height: 40,),
                Tabs(),
                SizedBox(height: 8,),
                SlidingCardsView()
              ],
            ),
          ),
          ExhibitionBottomSheet()
        ],
      ),
    );
  }
}

class Header extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.symmetric(horizontal: 32),
      child: Text("Shenzhen", style: TextStyle(fontSize: 22, fontWeight: FontWeight.w600),),
    );
  }
}